<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Errors and error handling</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="com.constants.html">预定义常量</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="com.examples.html">范例</a></div>
 <div class="up"><a href="book.com.html">COM</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="com.error-handling" class="chapter">
 <h1>Errors and error handling</h1>


  
 <p class="para">
  <em class="emphasis">Exceptions (PHP 5)</em>
 </p>
 <p class="para">
  This extension will throw instances of the class <em>com_exception</em>
  whenever there is a potentially fatal error reported by COM.  All
  COM exceptions have a well-defined <em>code</em> property that
  corresponds to the HRESULT return value from the various COM operations.
  You may use this code to make programmatic decisions on how to handle the
  exception.
 </p>

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="com.constants.html">预定义常量</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="com.examples.html">范例</a></div>
 <div class="up"><a href="book.com.html">COM</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
